<?php

class FacadeActionController
{
    var $actionController; //AbstractActionController

    function FacadeActionController()
    {
        $tipo   = (Request::get('page') != "")? "Page" : "" ; 
        
        switch ($tipo) {
            case "Page":
                $this->actionController = new FacadeActionControllerPage(Request::get('page'),Request::get('action')); break;
            default:
                $this->actionController = new FacadeActionControllerPage(Config::get('DefaultPage'),Config::get('DefaultAction')); 
        }

    }

    function execute()
    {
        $this->actionController->execute();
    }
}
?>